import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav2/Table.vue'
import store_in from './views/nav2/store_in.vue'
import store_out from './views/nav2/store_out.vue'
import store_query from './views/nav2/store_query.vue'
import service_provider from './views/nav3/service_provider.vue'
//import user_info from './views/nav1/user_info.vue'
//import pwd_edit from './views/nav1/pwd_edit.vue'
//import user from './views/nav1/user.vue'
import fro from './views/nav1/Form.vue'
//import Page4 from './views/nav2/Page4.vue'
//import Page5 from './views/nav2/Page5.vue'
//import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import set_update from './views/nav3/set_update.vue'
import guahao from './views/test1/guahao.vue'
import not_receive from './views/test1/not_receive.vue'
import consultation_note from './views/test1/consultation_note.vue'
import health_data from './views/test1/health_data.vue'
import noReply from './views/test1/noReply.vue'
import replied from './views/test1/replied.vue'
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
	{
        path: '/',
        component: Home,
        name: '',
        iconCls: 'el-icon-message',//图标样式class
		hidden: true ,
        children: [
			{ path: '/main', component: Main, name: '', hidden: true }
        ]
    },
	/*
    {
        path: '/',
        component: Home,
        name: '主页',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main2', component: Main, name: '隐藏的菜单', hidden: true },
            { path: '/userinfo', component: user_info, name: '个人资料' },
            { path: '/useredit', component: pwd_edit, name: '修改密码' }
        ]
    },
	*/
    {
        path: '/',
        component: Home,
        name: '挂号管理',
        iconCls: 'fa  fa-stethoscope',
        children: [
            { path: '/not_receive', component: not_receive, name: '未接收' },
            { path: '/guahao', component: guahao, name: '已挂号' }
        ]
    },
    {   
        path: '/',
        component: Home,
        name: '健康数据',
        iconCls: 'fa fa-plus-square',
        children: [
            { path: '/health_data', component: health_data, name: '查看健康数据'}
        ]
    },
    {   
        path: '/',
        component: Home,
        name: '健康咨询',
        iconCls: 'fa fa-comments-o',
        children: [
            { path: '/noReply', component: noReply, name: '未回复咨询' },
            { path: '/replied', component: replied, name: '已回复咨询' }
        ]
    },
    {   
        path: '/',
        component: Home,
        name: '会诊记录',
        iconCls: 'fa  fa-user-md',
        children: [
            { path: '/consultation_note', component: consultation_note, name: '查看会诊记录' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;